package com.wing.purchase.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wing.product.model.entity.ProductItem;
import com.wing.purchase.model.entity.PurQualityTestingTask;
import com.wing.purchase.model.entity.PurQualityTestingTaskDetail;
import com.wing.purchase.model.response.PurQualityTestingTaskDetailSearchVo;
import com.wing.purchase.model.response.PurQualityTestingTaskDetailVo;

import java.util.List;
import java.util.Map;

/**
 * 采购订单-质检-Service
 *
 * @author
 */
public interface PurQualityTestingTaskDetailService extends IService<PurQualityTestingTaskDetail> {

    /**
     * 查询质检项
     * @param productDetailId 物料di
     * @param type 质检类型
     * @param qualityTestingCategoryId 质检分类id
     * @return 质检项目
     */
    List<ProductItem> getQualityInfoBy(Long productDetailId, String type, Long qualityTestingCategoryId);

    /**
     * 查询质检详情信息 并且分页
     * @param pg
     * @param params
     * @return
     */
    IPage<PurQualityTestingTaskDetailSearchVo> pageList4app(Page<PurQualityTestingTaskDetailSearchVo> pg, Map<String, Object> params);

    /**
     * 查询采购详情
     * @param recordId
     * @return
     */
    PurQualityTestingTaskDetailSearchVo detail(String recordId);
}
